/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package com.xiashitech.agent.instrumentation.httpurlconnection.inst;

import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;

import java.util.List;

import static java.util.Collections.singletonList;

@AutoService(InstrumentationModule.class)
public class XSHttpUrlConnectionInstrumentationModule extends InstrumentationModule {

  public XSHttpUrlConnectionInstrumentationModule() {
    super("xs-http-url-connection");
  }

  @Override
  public List<TypeInstrumentation> typeInstrumentations() {
    return singletonList(new XSHttpUrlConnectionInstrumentation());
  }
}
